home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
PWAULTP3.ZIP
/
PWAPRGMS.A02
/
PWA95
/
PWAFSE15.ZIP
/
EDITOR.PPS
< prev
next >
Wrap
Text File
|
1995-04-09
|
2KB
|
68 lines
;------------------------------------------------------------------------------
; EDITOR 1.5 - ì\íEMESIS [PWA]
;
; Keep in mind this was written for pplc 2.0, before they had subroutines,
; so its kind of sloppy. I will rewrite it with subroutines later.. but it
; works so why bother for now?
;
; Call NWO at 803.855.8085 and apply if you want to see more of what I have
; done. Send email via PPEnet in PPE-GENERAL or Internet me: erich@clemson.edu
;------------------------------------------------------------------------------
BIGSTR ELINE,TCOLOR,SCOLOR,LINETXT,TXTCOLOR,NLCOLOR,NCOLOR
STRING ORIGINAL,CONFIGF
INTEGER I,TOPOS,SUBJPOS
CONFIGF=PPEPATH()+"CONFIG.DAT"
FOPEN 1,CONFIGF,O_RW,S_DN
FGET 1,TCOLOR
FGET 1,SCOLOR
FGET 1,TXTCOLOR
FGET 1,LINETXT
FGET 1,ELINE
FGET 1,NCOLOR
FGET 1,NLCOLOR
ORIGINAL=SCRTEXT(1,1,80,0)
TOPOS=0
:FINDTO
IF (!(UPPER(MID(ORIGINAL,TOPOS,1))<>"T")) GOTO SETSUBJ
TOPOS=TOPOS+1
GOTO FINDTO
:SETSUBJ
SUBJPOS=TOPOS
:FINDSUBJ
IF (!(UPPER(MID(ORIGINAL,SUBJPOS,5))<>"SUBJ:")) GOTO REPLACELINE
SUBJPOS=SUBJPOS+1
GOTO FINDSUBJ
:REPLACELINE
PRINT ELINE
PRINT "@QOFF@@POFF@H"
PRINT TXTCOLOR+ORIGINAL
ANSIPOS TOPOS,1
PRINT TCOLOR+"To:"
ANSIPOS SUBJPOS,1
PRINTLN SCOLOR+"Subj:"
PRINT LINETXT
ORIGINAL=SCRTEXT(4,3,1,0)
IF (!(ORIGINAL=":")) GOTO DONE
ORIGINAL=SCRTEXT(4,4,1,0)
IF (!(ORIGINAL=":")) GOTO DONE
I=3
:REPLACENUM
IF (!(SCRTEXT(4,(I),1,0)=":")) GOTO DONE
ANSIPOS 1,I
ORIGINAL=SCRTEXT(1,I,5,0)
PRINT NCOLOR+LEFT(ORIGINAL,3)
PRINT NLCOLOR+"│"
I=I+1
GOTO REPLACENUM
:DONE
FCLOSE 1